package com.tao.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author 季伟
 * 功能：用户登录时保存到redis中的个别用户信息
 * 这些信息一旦修改就必须要求用户重新登录，因此不需要维护与mysql中的一致性因为一旦修改就直接从redis中删除这个，从而实现用户在下一次访问权限接口时重新登录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SecurityCacheUser {
    private Long id;
    private String userName;
    private String password;
    private String type;
    private String status;
    private Integer delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }
}
